<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SSDP Help: CCLNameValidation</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SSDP Help<span id="projectnumber">&#160;2.04.01</span>
   </div>
   <div id="projectbrief">仅供测试</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.3 -->
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',false,false,'search.php','搜索');
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="../../d4/d6b/struct_c_c_l_name_validation-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">CCLNameValidation</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="../../dc/d24/_c_c_f_work_8h_source.html">CCFWork.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a04e474f4adce29f143ce272358a86fd9"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d32/struct_c_c_l_name_validation.html#a04e474f4adce29f143ce272358a86fd9">ValidationResult</a> { <a class="el" href="../../d6/d32/struct_c_c_l_name_validation.html#a04e474f4adce29f143ce272358a86fd9a13916c56ad0f85459e36551ec9d4e0a8">RESULT_Valid</a> = 0
, <a class="el" href="../../d6/d32/struct_c_c_l_name_validation.html#a04e474f4adce29f143ce272358a86fd9ab57138bf1fc68b55c19c921bd8ed16b2">RESULT_NullOrEmpty</a>
, <a class="el" href="../../d6/d32/struct_c_c_l_name_validation.html#a04e474f4adce29f143ce272358a86fd9a3bc54c806b7aa35a5616a3ea15ae8e46">RESULT_BeginsWithDigit</a>
, <a class="el" href="../../d6/d32/struct_c_c_l_name_validation.html#a04e474f4adce29f143ce272358a86fd9a6a3efacaf0068704a7353659b9bb006a">RESULT_IncludesInvalidCharacters</a>
 }</td></tr>
<tr class="memdesc:a04e474f4adce29f143ce272358a86fd9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumeration defining the result of a validation check  <a href="../../d6/d32/struct_c_c_l_name_validation.html#a04e474f4adce29f143ce272358a86fd9">更多...</a><br /></td></tr>
<tr class="separator:a04e474f4adce29f143ce272358a86fd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a1398e90ad4dae82cd403307f47db70de"><td class="memItemLeft" align="right" valign="top"><a id="a1398e90ad4dae82cd403307f47db70de" name="a1398e90ad4dae82cd403307f47db70de"></a>
static ATCCLOBJ_EXPORT WString&#160;</td><td class="memItemRight" valign="bottom"><b>EncodeToValidName</b> (WStringCR name)</td></tr>
<tr class="separator:a1398e90ad4dae82cd403307f47db70de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87fe2cd1e7598cf326524331a3fc0ee7"><td class="memItemLeft" align="right" valign="top">static ATCCLOBJ_EXPORT bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d32/struct_c_c_l_name_validation.html#a87fe2cd1e7598cf326524331a3fc0ee7">EncodeToValidName</a> (WStringR encoded, WStringCR name)</td></tr>
<tr class="separator:a87fe2cd1e7598cf326524331a3fc0ee7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43d34d89768634b36aea255639693b40"><td class="memItemLeft" align="right" valign="top">static ATCCLOBJ_EXPORT bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d32/struct_c_c_l_name_validation.html#a43d34d89768634b36aea255639693b40">DecodeFromValidName</a> (WStringR decoded, WStringCR name)</td></tr>
<tr class="separator:a43d34d89768634b36aea255639693b40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94ca766a15ac5bf667398dcf0f2643a3"><td class="memItemLeft" align="right" valign="top">static ATCCLOBJ_EXPORT <a class="el" href="../../d6/d32/struct_c_c_l_name_validation.html#a04e474f4adce29f143ce272358a86fd9">ValidationResult</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d32/struct_c_c_l_name_validation.html#a94ca766a15ac5bf667398dcf0f2643a3">Validate</a> (WCharCP name)</td></tr>
<tr class="separator:a94ca766a15ac5bf667398dcf0f2643a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adee076ffc19af90b4b5a909624cbfcad"><td class="memItemLeft" align="right" valign="top"><a id="adee076ffc19af90b4b5a909624cbfcad" name="adee076ffc19af90b4b5a909624cbfcad"></a>
static ATCCLOBJ_EXPORT bool&#160;</td><td class="memItemRight" valign="bottom"><b>IsValidName</b> (WCharCP name)</td></tr>
<tr class="memdesc:adee076ffc19af90b4b5a909624cbfcad"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the specified name is a valid CCL name <br /></td></tr>
<tr class="separator:adee076ffc19af90b4b5a909624cbfcad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9e95a8cfede4aea77679b12cfb6bc46"><td class="memItemLeft" align="right" valign="top"><a id="ab9e95a8cfede4aea77679b12cfb6bc46" name="ab9e95a8cfede4aea77679b12cfb6bc46"></a>
static ATCCLOBJ_EXPORT bool&#160;</td><td class="memItemRight" valign="bottom"><b>IsValidAlphaNumericCharacter</b> (WChar c)</td></tr>
<tr class="memdesc:ab9e95a8cfede4aea77679b12cfb6bc46"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether a character is valid for use in an ECName, e.g. alphanumeric, plus '_' <br /></td></tr>
<tr class="separator:ab9e95a8cfede4aea77679b12cfb6bc46"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p >@brclass SZEWEC 02/2017 +===============+===============+===============+===============+===============+====== </p>
</div><h2 class="groupheader">成员枚举类型说明</h2>
<a id="a04e474f4adce29f143ce272358a86fd9" name="a04e474f4adce29f143ce272358a86fd9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04e474f4adce29f143ce272358a86fd9">&#9670;&nbsp;</a></span>ValidationResult</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d6/d32/struct_c_c_l_name_validation.html#a04e474f4adce29f143ce272358a86fd9">CCLNameValidation::ValidationResult</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enumeration defining the result of a validation check </p>
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="a04e474f4adce29f143ce272358a86fd9a13916c56ad0f85459e36551ec9d4e0a8" name="a04e474f4adce29f143ce272358a86fd9a13916c56ad0f85459e36551ec9d4e0a8"></a>RESULT_Valid&#160;</td><td class="fielddoc"><p >The name is valid </p>
</td></tr>
<tr><td class="fieldname"><a id="a04e474f4adce29f143ce272358a86fd9ab57138bf1fc68b55c19c921bd8ed16b2" name="a04e474f4adce29f143ce272358a86fd9ab57138bf1fc68b55c19c921bd8ed16b2"></a>RESULT_NullOrEmpty&#160;</td><td class="fielddoc"><p >The string to check was NULL or empty </p>
</td></tr>
<tr><td class="fieldname"><a id="a04e474f4adce29f143ce272358a86fd9a3bc54c806b7aa35a5616a3ea15ae8e46" name="a04e474f4adce29f143ce272358a86fd9a3bc54c806b7aa35a5616a3ea15ae8e46"></a>RESULT_BeginsWithDigit&#160;</td><td class="fielddoc"><p >The string begins with a digit </p>
</td></tr>
<tr><td class="fieldname"><a id="a04e474f4adce29f143ce272358a86fd9a6a3efacaf0068704a7353659b9bb006a" name="a04e474f4adce29f143ce272358a86fd9a6a3efacaf0068704a7353659b9bb006a"></a>RESULT_IncludesInvalidCharacters&#160;</td><td class="fielddoc"><p >The string contains invalid characters </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a43d34d89768634b36aea255639693b40" name="a43d34d89768634b36aea255639693b40"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a43d34d89768634b36aea255639693b40">&#9670;&nbsp;</a></span>DecodeFromValidName()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static ATCCLOBJ_EXPORT bool CCLNameValidation::DecodeFromValidName </td>
          <td>(</td>
          <td class="paramtype">WStringR&#160;</td>
          <td class="paramname"><em>decoded</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WStringCR&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p >Decodes special characters in a name encoded by EncodeToValidName() to produce a name suitable for display </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">decoded</td><td>Will hold the decoded name </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">name</td><td>The name to decode </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>true if any special characters were decoded. Regardless of return value, decoded will contain a decoded name. </dd></dl>

</div>
</div>
<a id="a87fe2cd1e7598cf326524331a3fc0ee7" name="a87fe2cd1e7598cf326524331a3fc0ee7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87fe2cd1e7598cf326524331a3fc0ee7">&#9670;&nbsp;</a></span>EncodeToValidName()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static ATCCLOBJ_EXPORT bool CCLNameValidation::EncodeToValidName </td>
          <td>(</td>
          <td class="paramtype">WStringR&#160;</td>
          <td class="paramname"><em>encoded</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WStringCR&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p >Encodes special characters in a possibly invalid name to produce a valid name </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">encoded</td><td>Will hold the valid name </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">name</td><td>The name to encode </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>true if any special characters were encoded, false if the name was already valid. In either case encoded will contain a valid name. </dd></dl>

</div>
</div>
<a id="a94ca766a15ac5bf667398dcf0f2643a3" name="a94ca766a15ac5bf667398dcf0f2643a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94ca766a15ac5bf667398dcf0f2643a3">&#9670;&nbsp;</a></span>Validate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static ATCCLOBJ_EXPORT <a class="el" href="../../d6/d32/struct_c_c_l_name_validation.html#a04e474f4adce29f143ce272358a86fd9">ValidationResult</a> CCLNameValidation::Validate </td>
          <td>(</td>
          <td class="paramtype">WCharCP&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p >Checks a name against the rules for valid names </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">name</td><td>The name to validate </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>RESULT_Valid if the name is valid, or a ValidationResult indicating why the name is invalid. </dd></dl>

</div>
</div>
<hr/>该结构体的文档由以下文件生成:<ul>
<li>D:/doxy/PublicAPI/ATCCLObj/<a class="el" href="../../dc/d24/_c_c_f_work_8h_source.html">CCFWork.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
</small></address>
</body>
</html>
